package com.fly.monitor.console.controller;

import com.fly.monitor.console.service.MonitorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author Mr.Fu
 * @date 2022/11/26 下午1:50
 */
@RestController
@RequestMapping(path = "/monitor")
@Api(value = "监控接口")
public class MonitorController {

    @Resource
    private MonitorService monitorService;

    @ApiOperation(value = "监控")
    @PostMapping
    public Map<String, Object> monitor(String request) {
        return monitorService.monitor(request);
    }
}
